package com.jintoufs.service.message;


import com.jintoufs.dao.QueryFilters;
import com.jintoufs.domain.sys.Message;

import java.util.List;
import java.util.Map;

/**
 * Created by administrator on 2017/12/25.
 */
public interface MessageService {
    void deleteByPrimaryKey(Integer id);

    int insert(Message record);

    int updateByPrimaryKey(Message record);

    List<Message> queryByParams(Map map);

    /**
     *
     * @param message
     * @return
     */
    Map<String, Object> save(Message message);

    /**
     * 删除
     */
    void delete(Integer id);

    List<Map<String,Object>> findByMessage(Map<String, Object> params);

    List<Map<String,Object>> getByFilter(QueryFilters filters);

    Map<String,Object> getById(Integer id);
    Map<String,Object> next(Integer id);
    Map<String,Object> prev(Integer id);


}
